package com.dylan.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Base64;

/**
 * @auth: dylan
 * @Desc:
 * @Time: 2023/11/22
 */
@RequestMapping("test")
@RestController
public class TestController {

    @GetMapping("get")
    public ResponseEntity get(){
        return ResponseEntity.ok("欢迎来到 k8s--sb-dd888 。。。。。。。。。。。。。。。。");
    }

    public static void main(String[] args) {
        System.out.println(new String(Base64.getEncoder().encode("wuzhuoyue".getBytes())));

        System.out.println(new String(Base64.getDecoder().decode("d3V6aHVveXVl")));

        System.out.println(new String(Base64.getEncoder().encode("ying19890326".getBytes())));

        System.out.println(new String(Base64.getDecoder().decode("eWluZzE5ODkwMzI2")));
    }

}
